package cn.btks.resultintegration.rule.repository;

import cn.btks.resultintegration.rule.pojo.ProjectCategory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author lijun
 * @Date 2021/2/19 10:41
 */
@Repository
public interface ProjectCategoryRepository extends JpaRepository<ProjectCategory,Long> {

    /**
     * 根据环评类别二级查询其下子类
     * @param categorySecondId
     * @return
     */
    List<ProjectCategory> findAllByCategorySecondId(Long categorySecondId);
}
